<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
</h:head>
<h:body>

	<h:form>
  
  		
		<h:panelGrid columns="3">
		
			<h:outputLabel for="firstname" value="Firstname: " />
			<p:inputText id="firstname" value="#{registerUserBean.firstName}"
				required="true" label="Firstname">
				<f:validateLength minimum="2" />
			</p:inputText>
			<p:message for="firstname" />  

			<h:outputLabel for="surname" value="Lastname: " />
			<p:inputText id="surname" value="#{registerUserBean.lastName}" required="true"
				label="Surname" >
				<f:validateLength minimum="2" />
			</p:inputText>
			<p:message for="surname" />  

			<h:outputLabel for="userName" value="Choose Your User Name: " />
			<p:inputText id="userName" value="#{registerUserBean.userName}" required="true"
				label="UserName" >
			<f:validateLength minimum="2" />
			</p:inputText>
			<p:message for="userName" />  
			
			<h:outputLabel for="gender" value="Gender: " />
			<p:inputText id="gender" value="#{registerUserBean.gender}" required="true"
				label="Gender" >
			<f:validateLength minimum="2" />
			</p:inputText>
			<p:message for="gender" /> 
			
			<h:outputLabel for="mobile" value="Mobile: " />
			<p:inputText id="mobile" value="#{registerUserBean.mobile}" required="true"
				label="Mobile" >
			<f:validateLength minimum="2" />
			</p:inputText>
			<p:message for="mobile" /> 
			
			<h:outputLabel for="birthday" value="Birthday: " />
			<p:inputText id="birthday" value="#{registerUserBean.birthdate}" required="true"
				label="Birthday" >
			<f:validateLength minimum="2" />
			</p:inputText>
			<p:message for="birthday" /> 
				
			<h:outputLabel for="password" value="Create a Password: " />
			<p:inputText id="password" value="#{registerUserBean.password}" required="true"
				label="Password" >
			<f:validateLength minimum="2" />
			</p:inputText>
			<p:message for="password" />  
				
			<h:outputLabel for="passwordconfirmation" value="Confirm Your Password: " />
			<p:inputText id="passwordconfirmation" value="#{registerUserBean.passwordConfirmation}" required="true"
				label="PasswordConfirmation" >
			<f:validateLength minimum="2" />
			</p:inputText>
			<p:message for="passwordconfirmation" /> 
			

				
			<h:outputLabel for="" value="" />
			<h:outputLabel for="" value="" />
			<h:outputLabel for="" value="" />
			<h:outputLabel for="" value="" />
			<h:outputLabel for="" value="" />
			<h:outputLabel for="" value="" />
			<h:outputLabel for="" value="" />
			<p:commandButton value="Register" actionListener="#{registerUserBean.registerUser}" ajax="false">
			</p:commandButton>
			<h:outputLabel for="" value="" />
			
		</h:panelGrid>


	</h:form>

</h:body>
</html>